[zsh] how to clone a local git repository whose name contains a `:'?

Posted by zshgit on Stack Overflow See other posts from Stack Overflow or by zshgit
Published on 2010-05-04T11:40:14Z Indexed on 2010/05/04 11:48 UTC
Read the original article Hit count: 184

Filed under:
|

I'm trying to clone a local git repository. The repository's name contains a `:'. This is confusing both me and git. I get the following error:

~/work/c% git clone ../a::b .
Initialized empty Git repository in /home/user/work/c/.git/
ssh: Could not resolve hostname ../a: Name or service not known
fatal: The remote end hung up unexpectedly

How would you escape the `:'? For now I'm just changing the name of the original repository :-)

I'm using zshell...

© Stack Overflow or respective owner

Related posts about git

Related posts about zsh